'''fcn_resnet50os16_cityscapes'''
import copy
from .base_cfg import SEGMENTOR_CFG
from .._base_ import DATASET_CFG_MyRopeGlass_512x512, DATALOADER_CFG_BS
import os

# deepcopy
SEGMENTOR_CFG = copy.deepcopy(SEGMENTOR_CFG)
# modify dataset config
SEGMENTOR_CFG['dataset'] = DATASET_CFG_MyRopeGlass_512x512.copy()
SEGMENTOR_CFG['dataset']['rootdir'] = "/media/lihongsen/home/luoluoluo/dataset/elevator/rope_glass_voc"
# modify dataloader config
SEGMENTOR_CFG['dataloader'] = DATALOADER_CFG_BS.copy()
SEGMENTOR_CFG['dataloader']['train']['batch_size'] = 32
SEGMENTOR_CFG['dataloader']['test']['batch_size'] = 1
# modify scheduler config
SEGMENTOR_CFG['scheduler']['max_epochs'] = 300
SEGMENTOR_CFG['save_interval_epochs'] = 10
SEGMENTOR_CFG['eval_interval_epochs'] = 10
SEGMENTOR_CFG['log_interval_iterations'] = 100
# modify other segmentor configs
SEGMENTOR_CFG['num_classes'] = 5
SEGMENTOR_CFG['backbone'] = {
    'type': 'ResNet', 'depth': 50, 'structure_type': 'resnet50conv3x3stem',
    'pretrained': True, 'outstride': 16, 'use_conv3x3_stem': True, 'selected_indices': (2, 3),
}
SEGMENTOR_CFG['work_dir'] = 'output/fcn_resnet50os16_RopeGlass_512_512'
SEGMENTOR_CFG['logfilepath'] = 'output/fcn_resnet50os16_RopeGlass_512_512/fcn_resnet50os16_RopeGlass_512_512.log'
SEGMENTOR_CFG['resultsavepath'] = 'output/fcn_resnet50os16_RopeGlass_512_512/fcn_resnet50os16_RopeGlass_results_512_512.pkl'
